package com.ruoyi.edu.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 小区信息对象 edu_community
 *
 * @author ruoyi
 * @date 2024-06-29
 */
public class EduCommunity extends BaseEntity {
    /**
     * 串行版本uid
     */
    private static final long serialVersionUID = 1L;

    /**
     * 唯一ID
     */
    private Long id;

    /**
     * 小区名称
     */
    @Excel(name = "小区名称")
    private String name;

    /**
     * 小区建筑时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "小区建筑时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date buildTime;

    /**
     * 归属区
     */
    @Excel(name = "归属区")
    private Long belongArea;

    /**
     * 归属片区
     */
    @Excel(name = "归属片区")
    private String belongPiece;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setBuildTime(Date buildTime) {
        this.buildTime = buildTime;
    }

    public Date getBuildTime() {
        return buildTime;
    }

    public void setBelongArea(Long belongArea) {
        this.belongArea = belongArea;
    }

    public Long getBelongArea() {
        return belongArea;
    }

    public void setBelongPiece(String belongPiece) {
        this.belongPiece = belongPiece;
    }

    public String getBelongPiece() {
        return belongPiece;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("buildTime", getBuildTime())
                .append("belongArea", getBelongArea())
                .append("belongPiece", getBelongPiece())
                .append("remark", getRemark())
                .toString();
    }
}
